package com.v2future.sjt.collegecheckingattendance.rollcall.bean;

import android.widget.Checkable;

import java.io.Serializable;

/**
 * Created by minnie on 16/1/20.
 * 班级信息
 */
public class ClassBean implements Serializable,Checkable {

    /**
     * classCode : 1
     * className : 计算机1班
     */

    private String classCode;
    private String className;
    private boolean checked;

    public void setClassCode(String classCode) {
        this.classCode = classCode;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getClassCode() {
        return classCode;
    }

    public String getClassName() {
        return className;
    }

    /**
     * Change the checked state of the view
     *
     * @param checked The new checked state
     */
    @Override
    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    /**
     * @return The current checked state of the view
     */
    @Override
    public boolean isChecked() {
        return checked;
    }

    /**
     * Change the checked state of the view to the inverse of its current state
     */
    @Override
    public void toggle() {
        this.checked = !checked;
    }
}
